package com.example.merchant.entity;

/**
 * 商品实体类
 */
public class Commodity {


    /*
            水果商品属性
             */
    private Integer id;//商品id
    private String name;//商品名称
    private Double money;//价格
    // TODO 使用枚举类enum定义水果类型
    private Enum fruitType;//水果类型

//     private enum fruitType{//水果类型
//        APPLE{
//            public String getFruitType(){
//                return "苹果";
//            }
//        },
//        BANANA{
//            public String getFruitType(){
//                return "香蕉";
//            }
//        },
//        GRAPE{
//            public String getFruitType(){
//                return "葡萄";
//            }
//        };
//    }
    private Integer sum;//数量

    private Integer merchantId;//商人id

    private  Integer status ;//状态（0：好，1：坏）

    public Commodity(){

    }

    public Commodity(Integer id, String name, Double money, Enum FruitType, Integer sum, Integer merchantId, Integer status) {
        this.id = id;
        this.name = name;
        this.money = money;
        this.fruitType = fruitType;
        this.sum = sum;
        this.merchantId = merchantId;
        this.status = status;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public void setFruitType(Enum fruitType) {
        this.fruitType = fruitType;
    }

    public Enum getFruitType() {
        return fruitType;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    public Integer getSum() {
        return sum;
    }

    public  void setStatus(Integer status) {
        this.status = status;
    }

    public  Integer getStatus() {
        return status;
    }

    public Integer getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Integer merchantId) {
        this.merchantId = merchantId;
    }
}
